package study.cycleTest;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

/**
 * @author: chengchao
 * @description:
 * @date: create in 2021/9/16
 **/
@Component
//@Scope("prototype")
public class CycleA implements InitializingBean {

    public CycleA() {
        System.out.println("cycleA is Constructor");
    }

    @Autowired
    private CycleB cycleB;

    public void afterPropertiesSet() throws Exception {
        System.out.println("cycleA 初始化完成");
    }
}
